// 职位/岗位信息管理

import {request} from './request'

//获取岗位列表
export function GetPosition(data){
    return request({
        url:'/api/boss/position/getPositionList',
        method:'POST',
        data
    })
}

//更新岗位信息
export function RenewPosition(data){
    return request({
        url:'/api/boss/position/updatePosition',
        method:'POST',
        data
    })
}

//新增岗位信息
export function AddPosition(data){
    return request({
        url:'/api/boss/position/addPosition',
        method:'POST',
        data
    })
}

// 删除岗位信息
export function DeletePosition(id){
    return request({
        url:`/api/boss/position/deletePosition/${id}`,
        method:'DELETE'
    })
}